//
//  LWXWebController.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "LWXWebController.h"

@interface LWXWebController ()
@end

@implementation LWXWebController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    webView.backgroundColor = [UIColor grayColor];
    [self.view addSubview:webView];
    self.model = self.buyArray[self.index];
    
    NSURL *url = [NSURL URLWithString:self.model.buyurl];
    [webView loadRequest:[NSURLRequest requestWithURL:url]];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
